package com.hymjweb.demo.hymj.finance_manage.statistics.controller;

import com.hymjweb.demo.framework.sys.BaseController;
import com.hymjweb.demo.hymj.finance_manage.statistics.service.CwStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/pages/finance_manage/statistics")
public class CwStatisticsController extends BaseController {

    @Autowired
    private CwStatisticsService cwStatisticsService;


    @RequestMapping("/showSalesman")
    public String showSalesman(){
        return "/pages/finance_manage/statistics/showSalesman";
    }

    @RequestMapping("/showCustomerReceivables")
    public String showCustomerReceivables(){
        return "/pages/finance_manage/statistics/showCustomerReceivables";
    }


    @RequestMapping("/showNativeBillGrossProfit")
    public String showNativeBillGrossProfit(){
        return "/pages/finance_manage/statistics/showNativeBillGrossProfit";
    }

    @RequestMapping("/showNativeBillProfit")
    public String showNativeBillProfit(){
        return "/pages/finance_manage/statistics/showNativeBillProfit";
    }


    @RequestMapping("/querySalesmanStatisticsList")
    @ResponseBody
    public Object querySalesmanStatisticsList(@RequestParam(required = false) Map param){
        return cwStatisticsService.querySalesmanStatisticsList(param);
    }

    @RequestMapping("/queryReceivablesStatisticsList")
    @ResponseBody
    public Object queryReceivablesStatisticsList(@RequestParam(required = false) Map param){
        return cwStatisticsService.queryReceivablesStatisticsList(param);
    }

    //showNativeBillProfit

}
